#!/bin/sh
URL=http://www.google.com/calendar/ical/jallen.o.y%40gmail.com/private-768de14a8f2c3e141b71b779191ea56f/basic.ics 
TMP=/tmp/ical.tmp
if ! [ -f basic.ics ]; then
	wget $URL > /tmp/tmp
fi
python ical.py > $TMP
head -n2 $TMP
LINE=$((`cat $TMP | wc -l` - 2))
tail -n $LINE $TMP | sort -k 3 -r
